
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

//全局对象
const allGloablComponents: any = {}

export default {

  install(app: any) {

    Object.keys(allGloablComponents).forEach(key => {
      app.component(key, allGloablComponents[key])
    })

    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  }
}